<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:f="http://java.sun.com/jsf/core">
    <body>
        <ui:composition template="./out-template.xhtml">
            <ui:param name="titulo" value="Vehialpes - Ingreso" />
            <ui:define name="body">
                 <a4j:form id="FormaIngresar">
                 <rich:panel id="panelIngresar" >
                    <f:facet name="header">
                                <h:outputText value="Ingresar" />
                     </f:facet>
                     <h:panelGrid  columns="4" columnClasses="cols" width="100%" >
                         <rich:separator width="60px" lineType="none"/><h:inputHidden/>
                         <h:outputText  value="Usuario:" />
                         <h:inputText id="user" value="#{ingresoBean.usuario}"/>
                         <rich:separator width="60px" lineType="none"/><h:inputHidden/>
                         <h:outputText value="Clave" />
                         <h:inputSecret id="pass" value="#{ingresoBean.clave}"/>
                         <rich:separator width="60px" lineType="none"/><h:inputHidden/>
                         <h:outputText  value="Rol:" />
                         <h:inputText id="rol" value="#{ingresoBean.rol}"/>
                         <rich:separator width="30px" lineType="none"/><h:inputHidden/><h:inputHidden/>
                         <a4j:commandButton value="ingresar"  id="ingresar" action="#{ingresoBean.iniciarSesion}" reRender="panelIngresar">
                         </a4j:commandButton>
                     </h:panelGrid>
                </rich:panel>
                </a4j:form>
            </ui:define>
        </ui:composition>
    </body>
</html>

